$primary-color: linear-gradient(135deg, #667eea, #764ba2); // 替代红色，使用蓝紫渐变
$text-color: #fff;
$input-bg: rgba(255, 255, 255, 0.1);
$input-border: rgba(255, 255, 255, 0.3);
$btn-bg: rgba(255, 255, 255, 0.2);
$btn-hover: rgba(255, 255, 255, 0.4);

.page {
  min-height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
  background: $primary-color;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;

  color: $text-color;
  font-family: 'Segoe UI', sans-serif;
  transition: all 0.3s ease;

  .login-container,
  .main-content {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    width: 320px;

    h1, h2 {
      margin-bottom: 20px;
    }

    p {
      margin-top: 15px;
    }

    input {
      display: block;
      width: 100%;
      padding: 10px;
      margin: 12px 0;
      border: none;
      border-radius: 6px;
      background: $input-bg;
      color: $text-color;
      border: 1px solid $input-border;

      &::placeholder {
        color: rgba(255, 255, 255, 0.6);
      }
    }

    button {
      margin-top: 10px;
      padding: 10px 20px;
      background: $btn-bg;
      color: $text-color;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      transition: 0.3s ease;

      &:hover {
        background: $btn-hover;
      }
    }

    img {
      margin-top: 20px;
      width: 100%;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }
  }
}
.fade-leave-active {
    transition: opacity 0.1s ease; // 退场动画时间改为 0.1s
  }
  .fade-enter-active {
    transition: opacity 0s; // 主内容无需渐显动画，直接显示
  }
  